package com.tpsix.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tpsix.controller.vm.UserQueryVM;
import com.tpsix.controller.vm.UserVM;
import com.tpsix.domain.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface SysUserService extends IService<SysUser> {

    List<Map<String, Object>> selectRolesAuthorities(Integer userId);

    SysUser findUserDetailsById(int userId);

    IPage<SysUser> selectViewableUsers(Page<?> page, UserQueryVM queryVM);

    boolean addOrUpdate(UserVM userVM);

}

